﻿#ifndef TYPE_VALUEKEY_H
#define TYPE_VALUEKEY_H
#include <QString>

class type_valueKey
{
public:
    type_valueKey()
        : valueFloat(0),valueString(""){}
    type_valueKey(int valueInt)
        : valueFloat(valueInt){}
    type_valueKey(double valueFloat)
        : valueFloat(valueFloat){}
    type_valueKey(QString valueString)
        : valueString(valueString){}
//    type_valueKey(bool valueBool)
//        : valueBool(valueBool){}

    int getInt() const {return (int)valueFloat;}
    double getFloat() const {return valueFloat;}
    bool getBool() const {return valueFloat?1:0;}
    QString getString() const {return valueString;}

    type_valueKey setBool(bool type) const{return type_valueKey(type?1:0);}
private:
//    int valueInt;
    double valueFloat;
//    bool valueBool;
    QString valueString;

};

#endif // TYPE_VALUEKEY_H
